package com.partners.constant;

/**
 * @author liangyongle
 * @date 2018/8/14 0014
 */
public enum SuccessMessageEnum implements BusinessMessage {
    /**  成功 */
    OK(200, "成功"),
    OPERATION_SUCCESS(10001, "操作成功"),
    SEND_SUCCESS(10002, "发送成功"),
    EDIT_SUCCESS(10003, "保存成功"),
    PUBLISH_SUCCESS(10004, "发布成功"),
    ;

    SuccessMessageEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**  编号 */
    private Integer code;

    /**  信息 */
    private String msg;

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
